package 选择;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int temp;
		int[] arr = new int[5];
		Scanner scanner = new Scanner(System.in);
		
		for(int i = 0;i < arr.length;i++) {
			arr[i] = scanner.nextInt();
		}
		
		for (int i = 0; i < arr.length - 1; i++) {
			temp = arr[i];
			int t = i;
			for (int j = i; j < arr.length - 1; j++) {
				if(temp > arr[j + 1]) {
					temp = arr[j + 1];
					t = j + 1;
				}
			}
			arr[t] = arr[i];
			arr[i] = temp;
		}
		
		for (int i : arr) {
			System.out.println(i);
		}
		scanner.close();
	}
}
